package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName shipping_address
 */
@TableName(value ="shipping_address")
@Data
public class ShippingAddress implements Serializable {
    /**
     * 收货地址id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 手机号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 收货地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime create_time;

    /**
     * 修改日期
     */
    @TableField(value = "update_time")
    private LocalDateTime update_time;

    /**
     * 地址选择状态
     */
    @TableField(value = "selected")
    private Long selected;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}